//
//  NewsTiltleModel.m
//  UI19-JSON（网易新闻练习）
//
//  Created by 韩旭 on 16/8/9.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "NewsTiltleModel.h"

@implementation NewsTiltleModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"template"]) {
        _Template = value;
    }
}
- (id)valueForUndefinedKey:(NSString *)key {
    return nil;
}
- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}
+ (instancetype)newsTitleDic:(NSDictionary *)dic {
    return [[NewsTiltleModel alloc] initWithDic:dic];
}
@end